import request from '@/utils/request'

// 查询客户管理列表
export function listCustomermanager(query) {
    return request({
        url: '/customermanager/customermanager/list',
        method: 'get',
        params: query
    })
}

// 查询客户管理详细
export function getCustomermanager(id) {
    return request({
        url: '/customermanager/customermanager/' + id,
        method: 'get'
    })
}

// 新增客户管理
export function addCustomermanager(data) {
    return request({
        url: '/customermanager/customermanager',
        method: 'post',
        data: data
    })
}

// 修改客户管理
export function updateCustomermanager(data) {
    return request({
        url: '/customermanager/customermanager',
        method: 'put',
        data: data
    })
}

// 删除客户管理
export function delCustomermanager(id) {
    return request({
        url: '/customermanager/customermanager/' + id,
        method: 'delete'
    })
}


export function getCustomerName() {
    return request({
        url: '/salesorderrecord/salesorderrecord/getcustomername',
        method: 'get'
    })
}
